﻿<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"
	  xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title></title>
	<link rel="stylesheet" type="text/css" th:href="@{/css/css_x/hlogin/bootstrap.min.css}">
	<link rel="stylesheet" type="text/css" th:href="@{/css/css_x/hlogin/login.css}">
	<link rel="icon" type="text/css" th:href="@{/images/favicon.ico}">
	<script th:src="@{/js/js_x/hlogin/login.js}"></script>
	<script th:src="@{/js/contactus/jquery-3.2.1.js}"></script>
</head>

<body>
<!--<input type="hidden" id = "judge" th:value="${flag}">-->

<div class="login">
	<header>
		<h1>登陆</h1>
	</header>
	<div class="sr">
		<form th:action="@{/a/t/hlogin}" method="post">
			<div class="name">
				<label>
					<i class="sublist-icon glyphicon glyphicon-user"></i>
				</label>
				<input type="text" name="username" id="userName" placeholder="这里输入登录名" class="name_inp">
			</div>
			<div class="name">
				<label>
					<i class="sublist-icon glyphicon glyphicon-pencil"></i>
				</label>
				<input type="password" name="password" id="password" placeholder="这里输入登录密码" class="name_inp">
			</div>
			<button class="dl" type="submit">登陆</button>
		</form>
		<p id="sc"></p>
	</div>
</div>

</body>
<script type="text/javascript">
	jQuery(document).ready(function() {
		$(function () {
			if ($("#judge").val() == 2) {
				$("#sc").append("<div style='color: red ;text-align: center' ><i></i><span>用户名错误!</span></div>");
			} else if ($("#judge").val() == 1) {
				$("#sc").append("<div style='color: red ;text-align: center'><i ></i><span>密码错误!</span></div>");
			}
		});
	});

</script>

</html>

